//
//  SerialPostDateView.h
//  XPhoto
//
//  Created by sentinel on 2020/4/10.
//  Copyright © 2020 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PhotoMapView.h"
#import "PhotoTableViewCell.h"
#import "Post.h"
#import "PostSerial.h"
#import "SerialGroupView.h"
#import <BKKIt/Group.h>
#import "SysDict.h"

NS_ASSUME_NONNULL_BEGIN
@protocol SerialTypeViewDelegate;

@interface SerialPostDateView : UIScrollView<UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate>

@property(nonatomic, strong) IBOutlet UIScrollView *contentScrollView;

@property(nonatomic, strong) IBOutlet PhotoMapView *photoMapView;
@property(nonatomic, strong) IBOutlet SerialGroupView *serialGroupView;
@property(nonatomic, strong) IBOutlet UITableView *tableView;

@property(nonatomic, strong) PostSerial *postSerial;
@property(nonatomic, strong) NSMutableArray<Post*> *posts;
@property(nonatomic, strong) UIView *navBar;
@property(nonatomic, assign) NSInteger serialType;

@property(nonatomic, assign) id actionDelegate;

@property(nonatomic, strong) NSMutableArray<Group*> *groups;

- (void)initAfterAwakeFromNib;
- (void)reload;
- (void)layoutSerialGroupView;
- (void)search:(NSInteger)offset;

+ (SerialPostDateView *)view;
- (PhotoTableViewCell *)photoTableViewCell;
@end
@protocol SerialTypeViewDelegate <NSObject>

@required
- (void)serialTypeViewDidNotSupportCurrentSerialType:(id)view;

@end

NS_ASSUME_NONNULL_END
